package cn.gson.springboot.model.dao;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import cn.gson.springboot.model.pojos.Addrecord;

public interface AddrecordDAO  extends CrudRepository<Addrecord, Integer> {
	@Query("SELECT SUM(a.drugs_number_xz) as drugs_number_xz from Addrecord as a where a.drugsYk.drugId=?1 and a.drugPc=?2")
	public Object[] cxxzsy(int a,int b); 
}
